package javabase.schoolwork.day5_24;

/**
 * @author fance
 * @date 2018/5/24 19:51
 */
public class Circle {
    private double radius;

    public Circle(double radius) {
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public double calArea() {
        return 3.14 * radius * radius;
    }

}
